|
DX11 INSTANCE OBJECT
Creates a new instance from the given object.
Instances use the same mesh data to draw all instances in a single draw call (actually it's one mesh per draw call, so a complex object will cause more than one).
The instance object itself along with the individual limbs of an instance can be transformed (moved / rotated / scaled) independantly of the parent object.
Instances are also subject to frustum culling during rendering, as well as depth sorting - however the depth sorting can only take place among the instanced meshes
themselves since everything is drawn per instance type. As such this can cause issues when using instanced translucent objects since the draw order may not account
for properly drawing geometry that should be seen through an instance before said transparent instance.
Return Dword = DX11 INSTANCE OBJECT(sourceObject)
sourceObject Dword The source object to create an instance from. If this object is also an instance, its parent object will be instanced.
The created object instance.
OBJECT Functions Menu
DX11 Function Categories
|